package com.szy.douyou_classification.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.szy.douyou_classification.config.ResultDTO;
import com.szy.douyou_classification.dao.Classification;
import com.szy.douyou_classification.dao.ClassificationReq;

/**
 * @author sunziyan
 * @date 2022/02/08
 */
public interface ClassificationService {

    /**
     * 查询所有板块分类信息
     *
     * @param classificationReq
     * @return
     */
    ResultDTO<Page<Classification>> queryAllClassification(ClassificationReq classificationReq);


    /**
     * 查询板块分类单个信息
     *
     * @param id
     * @return
     */
    ResultDTO<Classification> queryOneClassification(Long id);

    /**
     * 添加板块分类单条数据
     *
     * @param classification
     * @return
     */
    ResultDTO<Boolean> addOneClassification(Classification classification);

    /**
     * 更新板块分类单条数据
     *
     * @param classification
     * @return
     */
    ResultDTO<Boolean> updateOneClassification(Classification classification);

    /**
     * 删除该分类
     *
     * @param id
     * @return
     */
    ResultDTO<Integer> deleteOneClassification(Long id);

}
